package com.crm.dao.impl;

import java.util.List;
import java.util.Map;

import com.crm.dao.CountDao;
import com.crm.util.JdbcUtil;

public class CountDaoImpl implements CountDao {

	@Override
	public List<Map> queryCount(String field) {
		String sql = "(select "+field+",count(*) count from cst_customer group by "+field+") union (select '总计',count(*) from cst_customer)";
		return JdbcUtil.executeQuery(sql, null);
	}


}
